package com.aphrodite.io.sip.provider;

import java.io.IOException;

import com.aphrodite.io.sip.message.Message;
import com.aphrodite.io.sip.net.IpAddress;

/**
 * ConnectedTransport is a generic CO transport service for SIP.
 */
interface ConnectedTransport extends Transport {
	/** Gets the last time the ConnectedTransport has been used (in millisconds) */
	public long getLastTimeMillis();

	/** Gets the remote IpAddress */
	public IpAddress getRemoteAddress();

	/** Gets the remote port */
	public int getRemotePort();

	/** Sends a Message */
	public void sendMessage(Message msg) throws IOException;
}
